package com.ruoyi.api.controller;

import com.ruoyi.api.service.IUserWalletService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 寻觅
 * @since 2025-05-28
 */
@RestController
@RequestMapping("/user/wallet")
public class UserWalletController extends BaseController {
    @Autowired
    IUserWalletService userWalletService;

    @GetMapping("info")
    public AjaxResult info(@RequestParam Long userId) {
        return AjaxResult.success(userWalletService.info(userId));
    }
}
